package com.scfire.message

import com.scfire.security.Member;

/**
 * Copyright 2015 Shudao Info Tech Co. Ltd.  All rights reserved.
 * @author XSunny
 * @email  854610556@qq.com
 * @date 2015年9月8日 下午1:31:33
 * @version V1.0
 */

class SystemMessageService {
	

	/**
	 * 推送系统信息
	 * @param message 消息内容
	 * @param member  消息归属用户
	 * @return
	 */
	def sendSysMessage(String message,long member){
		
		SystemMessage systemMessage = new SystemMessage()
		systemMessage.message = message
		systemMessage.date = new Date()
		systemMessage.member = member
		systemMessage.save flush:true
	}

}
